package com.ruoyi.flink.bean;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

/**
 * @program: ruoyi
 * @description: WindowTxt
 * @author: zengchen
 * @create: 2020-12-01 10:00
 **/
@Data
public class WindowTxt {

    private String key;
    private String date;
    private String time;
    private LocalDateTime eventTime;
    private int value;

    public long getEventTimeStamp(){
        return this.eventTime.toInstant(ZoneOffset.of("+8")).toEpochMilli();
    }

//    public String getEventTimeStampStr(){
//        return  this.getEventTimeStamp().
//    }
}
